package com.comp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/test3")
public class Test3Controller {

    @RequestMapping("/test1")
    public String test1() {
        return "test1";
    }

    @RequestMapping("/test2")
    public List test2() {
        List list = new ArrayList();
        list.add("item1");
        list.add("item2");
        list.add("item3");
        list.add("item4");
        return list;
    }
}
